import {Component} from 'react';
import WithRoute from '../router/withRoute';
import Child from './Child';
class Info extends Component{
  
    // 获取动态路由的动态参数 
    render(){
        return(
            <div>
                <h1>详情页---{this.props.params.id}---{this.props.params.price}</h1>
                <Child name='张三' age={18}></Child>
            </div>
        )
    }
    componentDidMount(){
        console.log(this.props)
    }
}
export default WithRoute(Info)